body {
    background-image: url(../images图片库/背景图/背景1.3\ .jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

/* Carousel area */
.slider {
    position: relative;
    margin-top: 50px;
    width: 100%;
    height: 370px;
    overflow: hidden;
}

.item {
    position: absolute;
    width: 240px;
    height: 320px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    transition: 0.5s;
    left: calc(50% - 110px);
    top: 0;
    background-size: cover;
}

#next {
    position: absolute;
    right: 50px;
    top: 40%;
}

#prev {
    position: absolute;
    left: 50px;
    top: 40%;
}

#prev,
#next {
    background: none;
    border: none;
    font-size: xxx-large;
    font-family: monospace;
    font-weight: bold;
    opacity: 0.5;
    transition: opacity 0.5s;
}

#prev:hover,
#next:hover {
    opacity: 1;
}

/* Recommendation area */

.suggest {
    padding: 20px;
}

.suggest ul li {
    width: 1200px;
    height: 300px;
    margin: 15px auto;
    border-radius: 15px;
    box-shadow: 2px 2px 12px 4px gray;
    padding: 10px;

    display: flex;
    align-items: center;
}

.suggest .left {
    margin-right: 10px;
}

.suggest img {
    border-radius: 15px;
    height: 280px;
    width: 230px;
    border: 1px solid black;
}

.suggest p {
    height: 280px;
    width: 940px;
    padding: 0 50px;
    background-color: aliceblue;
    display: flex;               /* Use flex layout */
    justify-content: center;     /* Horizontal centering */
    align-items: center;         /* Vertical centering */

    font-family: "KaiTi", "STKaiti", KaiTi, serif; /* Add Kai font stack */
    font-size: 18px;
    font-weight: 700;
    text-indent: 2em;     /* Indent first line by 2 characters */
    line-height: 2;
    --cursor: block;
}

/* Typewriter effect */
.suggest p::after {
    content: "";
    display: var(--cursor, inline-block); /* 修改为 inline-block */
    width: 10px;
    height: 1.2em;
    background-color: black;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    /* vertical-align: baseline; 已移除，避免冲突 */
    position: relative;
    top: 2px; /* 可微调位置，模拟 baseline 效果 */
}


/* Image effects */
.suggest .left {
    margin-right: 10px;
    overflow: hidden; /* Hide overflow parts */
    border-radius: 15px; /* Maintain same border radius as image */
}

.suggest .right {
    margin-right: 10px;
    overflow: hidden; /* Hide overflow parts */
    border-radius: 15px; /* Maintain same border radius as image */
}

.suggest img {
    border-radius: 15px;
    height: 280px;
    width: 230px;
    border: 1px solid black;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother easing function */
    transform-origin: center center; /* Scale from center */
}

.suggest img:hover {
    transform: scale(1.4); /* Scale up by 40% */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    filter: brightness(1.05); /* Slight brightness increase */
}
